@font-face {
	font-family: 'Phantom Sans';
	src: url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/SemiBold.woff')
		format('woff'),
		url('https://assets.hackclub.com/fonts/Phantom_Sans_0.7/SemiBold.woff2')
		format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

html {
	background: #212529;
}

header {
	text-align: center;
	width: 100%;
	padding-top: calc(30px + 8vw);
	padding-bottom: calc(20px + 8vw);
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	color: #ced4da;

	& h1 {
		font-family: var(--font-main-title);
		font-size: 2.5em;
		font-weight: 600;
		margin: 0;
		margin-bottom: -2px;
	}

	& p {
		line-height: 1.7;
		font-size: 1.05em;
		margin: 16px 0;
	}

	& .abstract {
		font-style: italic;
	}

	& a, & a:not([href^="#"]):visited {
		--color: currentColor;
		--hover-background: #343a40;
		text-decoration: underline;
		text-decoration-color: #9775fa;
		text-underline-offset: 4px;
	}

	& .squiggles {
		pointer-events: none;
		user-select: none;
		width: 100%;
		position: absolute;
		left: 0;
		opacity: 0.5;
		z-index: -1;

		&.top {
			top: 0;
		}

		&.bottom {
			bottom: 0;
		}
	}
}

main {
	width: 100%;
	background: #f8f9fa;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 9;
}

nav.external {
	position: static;
	background: transparent;
	margin-top: -20px;

	& a {
		& .title {
			color: #dee2e6;
		}

		&:hover {
			background: #343a40;
		}
	}
}

h2 {
	margin-top: 80px;
}

@media print {
	html, main {
		background: #ffffff;
	}

	header .squiggles {
		display: none;
	}

	header {
		background: transparent;
		color: #000000;
		padding: 20px;
		margin-bottom: -40px;
	}
}